﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020011CB RID: 4555
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SpaceZooMutateCsReq : IMessage<SpaceZooMutateCsReq>, IMessage, IEquatable<SpaceZooMutateCsReq>, IDeepCloneable<SpaceZooMutateCsReq>, IBufferMessage
	{
		// Token: 0x170039A9 RID: 14761
		// (get) Token: 0x0600CBF2 RID: 52210 RVA: 0x002259C0 File Offset: 0x00223BC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SpaceZooMutateCsReq> Parser
		{
			get
			{
				return SpaceZooMutateCsReq._parser;
			}
		}

		// Token: 0x170039AA RID: 14762
		// (get) Token: 0x0600CBF3 RID: 52211 RVA: 0x002259C7 File Offset: 0x00223BC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SpaceZooMutateCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170039AB RID: 14763
		// (get) Token: 0x0600CBF4 RID: 52212 RVA: 0x002259D9 File Offset: 0x00223BD9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SpaceZooMutateCsReq.Descriptor;
			}
		}

		// Token: 0x0600CBF5 RID: 52213 RVA: 0x002259E0 File Offset: 0x00223BE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpaceZooMutateCsReq()
		{
		}

		// Token: 0x0600CBF6 RID: 52214 RVA: 0x002259E8 File Offset: 0x00223BE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpaceZooMutateCsReq(SpaceZooMutateCsReq other) : this()
		{
			this.itemId_ = other.itemId_;
			this.uniqueId_ = other.uniqueId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CBF7 RID: 52215 RVA: 0x00225A19 File Offset: 0x00223C19
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpaceZooMutateCsReq Clone()
		{
			return new SpaceZooMutateCsReq(this);
		}

		// Token: 0x170039AC RID: 14764
		// (get) Token: 0x0600CBF8 RID: 52216 RVA: 0x00225A21 File Offset: 0x00223C21
		// (set) Token: 0x0600CBF9 RID: 52217 RVA: 0x00225A29 File Offset: 0x00223C29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ItemId
		{
			get
			{
				return this.itemId_;
			}
			set
			{
				this.itemId_ = value;
			}
		}

		// Token: 0x170039AD RID: 14765
		// (get) Token: 0x0600CBFA RID: 52218 RVA: 0x00225A32 File Offset: 0x00223C32
		// (set) Token: 0x0600CBFB RID: 52219 RVA: 0x00225A3A File Offset: 0x00223C3A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint UniqueId
		{
			get
			{
				return this.uniqueId_;
			}
			set
			{
				this.uniqueId_ = value;
			}
		}

		// Token: 0x0600CBFC RID: 52220 RVA: 0x00225A43 File Offset: 0x00223C43
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SpaceZooMutateCsReq);
		}

		// Token: 0x0600CBFD RID: 52221 RVA: 0x00225A51 File Offset: 0x00223C51
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SpaceZooMutateCsReq other)
		{
			return other != null && (other == this || (this.ItemId == other.ItemId && this.UniqueId == other.UniqueId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CBFE RID: 52222 RVA: 0x00225A90 File Offset: 0x00223C90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ItemId != 0U)
			{
				num ^= this.ItemId.GetHashCode();
			}
			if (this.UniqueId != 0U)
			{
				num ^= this.UniqueId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CBFF RID: 52223 RVA: 0x00225AE8 File Offset: 0x00223CE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CC00 RID: 52224 RVA: 0x00225AF0 File Offset: 0x00223CF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CC01 RID: 52225 RVA: 0x00225AFC File Offset: 0x00223CFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ItemId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.ItemId);
			}
			if (this.UniqueId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.UniqueId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CC02 RID: 52226 RVA: 0x00225B54 File Offset: 0x00223D54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ItemId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ItemId);
			}
			if (this.UniqueId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.UniqueId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CC03 RID: 52227 RVA: 0x00225BAC File Offset: 0x00223DAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SpaceZooMutateCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ItemId != 0U)
			{
				this.ItemId = other.ItemId;
			}
			if (other.UniqueId != 0U)
			{
				this.UniqueId = other.UniqueId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CC04 RID: 52228 RVA: 0x00225BFC File Offset: 0x00223DFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CC05 RID: 52229 RVA: 0x00225C08 File Offset: 0x00223E08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 72U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.UniqueId = input.ReadUInt32();
					}
				}
				else
				{
					this.ItemId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040051E2 RID: 20962
		private static readonly MessageParser<SpaceZooMutateCsReq> _parser = new MessageParser<SpaceZooMutateCsReq>(() => new SpaceZooMutateCsReq());

		// Token: 0x040051E3 RID: 20963
		private UnknownFieldSet _unknownFields;

		// Token: 0x040051E4 RID: 20964
		public const int ItemIdFieldNumber = 1;

		// Token: 0x040051E5 RID: 20965
		private uint itemId_;

		// Token: 0x040051E6 RID: 20966
		public const int UniqueIdFieldNumber = 9;

		// Token: 0x040051E7 RID: 20967
		private uint uniqueId_;
	}
}
